import request from '@/utils/request'

export function queryReportTable({ current, size, ...data }) {
  return request({
    url: '/v1/report/queryReportTable',
    method: 'post',
    data,
    params: {
      current,
      size
    }
  })
}

export function exportDown(data) {
  return request({
    url: '/v1/report/export',
    method: 'post',
    responseType: 'blob',
    data
  })
}

export function barChar1(data) {
  return request({
    url: '/v1/report/barChar1',
    method: 'post',
    data
  })
}

export function queryDeviceCheckCountWeekly(data) {
  return request({
    url: '/v1/report/queryDeviceCheckCountWeekly',
    method: 'post',
    data
  })
}

export function getDesktopReport(data) {
  return request({
    url: '/v1/report/getDesktopReport',
    method: 'post',
    data
  })
}

export function queryCurrReport(data) {
  return request({
    url: '/v1/report/queryCurrReport',
    method: 'post',
    data
  })
}
